//  @ Project : GagalPanen
//  @ File Name : fruit.hpp
//  @ Date : 3/9/2011
//  @ Author : Denis
//
//


#if !defined(_FRUIT_H)
#define _FRUIT_H

#include "item.hpp"
#include "itemtype.hpp"
#include "fruitconstants.hpp"

class Fruit : public Item {
public:
  // normal constructor
  Fruit(GameInterface* game, int fruit_id);

  // load game constructor
  Fruit(GameInterface* game, std::ifstream& is);

  virtual void save(std::ofstream& os);

  virtual ~Fruit();
  int getId();
  ItemType getType();
  bool isSeed();
  std::string getName();

  void eat();

  /* Sell price */
  int getPrice();

  virtual std::string getDescription();
private:
  int fruit_id_;
};

#endif  //_FRUIT_H
